package cn.edu.fzu.homemaking.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.edu.fzu.homemaking.web.Result;

/**
 * @author yifan
 * @date 2023/4/16
 */
@FeignClient(value = "order")
public interface OrderApi {

    /**
     * @see cn.edu.fzu.homemaking.controller.OrderController#count
     */
    @GetMapping("/api/order/auth/count")
    Result count(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime);

    /**
     * @see cn.edu.fzu.homemaking.controller.OrderController#countByMonth
     */
    @GetMapping("/api/order/auth/countByMonth")
    Result countByMonth(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime);

    /**
     * @see cn.edu.fzu.homemaking.controller.OrderController#countByDay
     */
    @GetMapping("/api/order/auth/countByDay")
    Result countByDay(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime);

}
